import request from '@/utils/request.js'
const prefixUrl = "/cateInfo"
// export function login(userInfo) {
//     return request.post(prefixUrl + "/Login", userInfo)
// }
export const categorySerivce = () => {
    const getAllOneCategoryPublic = async (params) => {
        return await request.get(prefixUrl + "/getAllOneCategoryPublic",params)
    }
    const getCategoryList = async (params) => {
        return await request.get(prefixUrl + "/getCategoryList", params)
    }
    const getAllCategory = async(params)=>{
        return await request.get(prefixUrl + "/getAllCategory",params )
    }
    return {
        getAllOneCategoryPublic,
        getCategoryList,
        getAllCategory
    }
}